<?php /* Smarty version Smarty-3.1.12, created on 2013-02-22 10:32:34
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/openMatches/tablePrototype.tpl" */ ?>
<?php /*%%SmartyHeaderCode:28090310511a894c9346f0-94773428%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6bcb442f086ff0d9905b19b36056ef2c641d9a1f' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/openMatches/tablePrototype.tpl',
      1 => 1361525550,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '28090310511a894c9346f0-94773428',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_511a894c97ffa1_72086072',
  'variables' => 
  array (
    'data' => 0,
    'TableID' => 0,
    'v' => 0,
    'submittedClass' => 0,
    'submittedTitle' => 0,
    'submittedIcon' => 0,
    'submittedCount' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_511a894c97ffa1_72086072')) {function content_511a894c97ffa1_72086072($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/www/htdocs/w00fc40b/dota2league/Smarty/plugins/modifier.date_format.php';
?><?php if (count($_smarty_tpl->tpl_vars['data']->value)>0&&is_array($_smarty_tpl->tpl_vars['data']->value)){?>
<table id="<?php echo $_smarty_tpl->tpl_vars['TableID']->value;?>
"
	class="table table-striped openMatchesTable" cellpadding="0" cellspacing="0"
	border="0">
	<thead>
		<tr align="center">
			<th></th>
			<th></th>
			<th>Date</th>
			<th>MatchID</th>
			<th>Mode</th>
			<th>Submissions</th>
		</tr>
	</thead>
	<tbody>
		<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
		
		<?php if ($_smarty_tpl->tpl_vars['v']->value['Submitted']=="1"){?>
			<?php $_smarty_tpl->tpl_vars["submittedClass"] = new Smarty_variable('', null, 0);?>
			<?php $_smarty_tpl->tpl_vars["submittedIcon"] = new Smarty_variable('', null, 0);?>
			<?php $_smarty_tpl->tpl_vars["submittedTitle"] = new Smarty_variable('', null, 0);?>
		<?php }else{ ?>
			<?php $_smarty_tpl->tpl_vars["submittedClass"] = new Smarty_variable("text-error t", null, 0);?>
			<?php $_smarty_tpl->tpl_vars["submittedIcon"] = new Smarty_variable("<i class='icon-exclamation-sign'></i>&nbsp;", null, 0);?>
			<?php $_smarty_tpl->tpl_vars["submittedTitle"] = new Smarty_variable("you have to submit a Match-Result!", null, 0);?>
		<?php }?>
		
		<?php if ($_smarty_tpl->tpl_vars['v']->value['SubmittedCount']==''){?>
			<?php $_smarty_tpl->tpl_vars["submittedCount"] = new Smarty_variable("0", null, 0);?>
		<?php }else{ ?>
			<?php $_smarty_tpl->tpl_vars["submittedCount"] = new Smarty_variable($_smarty_tpl->tpl_vars['v']->value['SubmittedCount'], null, 0);?>
		<?php }?>
		
		<tr>
			<td><span class="<?php echo $_smarty_tpl->tpl_vars['submittedClass']->value;?>
" title="<?php echo $_smarty_tpl->tpl_vars['submittedTitle']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['submittedIcon']->value;?>
</span></td>
			<td><?php echo $_smarty_tpl->getSubTemplate ("prototypes/matchTypeIcon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('MatchTypeID'=>$_smarty_tpl->tpl_vars['v']->value['MatchTypeID']), 0);?>
</td>
			<td><span class="timeago"title="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['v']->value['TimestampCreated'],'%Y-%m-%d %H:%M:%S');?>
"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['v']->value['TimestampCreated'],'%Y-%m-%d %H:%M:%S');?>
</span></td>
			<td><a href="match.php?matchID=<?php echo $_smarty_tpl->tpl_vars['v']->value['MatchID'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['MatchID'];?>
</a></td>
			<td><span class="t" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['MatchMode'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['MatchModeShortcut'];?>
</span></td>
			<td><span class="label"><?php echo $_smarty_tpl->tpl_vars['submittedCount']->value;?>
</span></td>
		</tr>

		<?php } ?>
	</tbody>
</table>
<br> <!-- Scrollbalken workaround -->
<?php }else{ ?> no Data<?php }?>
<?php }} ?>